package pl.edu.agh.sr.lab3.zad2.impl.server;

import org.omg.CORBA.IntHolder;

import pl.edu.agh.sr.lab3.zad2.generated.ItemAPOA;

public class ItemAImpl extends ItemAPOA {

	private String name;

	public ItemAImpl(String name) {
		this.name = name;
	}

	@Override
	public void actionA(float a, IntHolder b) {
		System.out.println("In ItemAImpl::actionA()");
		b.value = (int) (10 * a + 12);
	}

	@Override
	public String name() {
		return name;
	}

	@Override
	public int get_item_age() {
		return name.length();
	}
}
